package com.tutu.product.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Program: b2c-cloud-store
 * @Description: rabbitmq消息序列化
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-28 15:03
 **/
@Configuration
public class RabbitMqConfig {

    @Bean
    public MessageConverter rabbitMqConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
